import java.awt.*;

/**
 * 球类 zzzz
 */
public class Ball {

    private double x;

    private double y;

    private double r;

    private double vx;

    private double vy;

    private double ax = 0;  // 加速度

    private double ay = 98;

    private Color color;

    /**
     * 弹性 0 ~ 100
     */
    private int elastic;

    public Ball() {
    }

    public Ball(double x, double y, double r, double vx, double vy) {
        this.x = x;
        this.y = y;
        this.r = r;
        this.vx = vx;
        this.vy = vy;
        this.elastic = 100;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }

    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }

    public double getVx() {
        return vx;
    }

    public void setVx(double vx) {
        this.vx = vx;
    }

    public double getVy() {
        return vy;
    }

    public void setVy(double vy) {
        this.vy = vy;
    }

    public Color getColor() {
        return color;
    }

    public void setColor(Color color) {
        this.color = color;
    }

    public int getElastic() {
        return elastic;
    }

    public void setElastic(int elastic) {
        this.elastic = elastic;
    }

    public double getAx() {
        return ax;
    }

    public void setAx(double ax) {
        this.ax = ax;
    }

    public double getAy() {
        return ay;
    }

    public void setAy(double ay) {
        this.ay = ay;
    }
}
